export default {
  state: {
    num: 0
  },
  mutations: {
    updataNum (state, payload) {
      // console.log(state, payload)
      state.num = payload
    },
    getNum (state, payload) {
      console.log(state, payload)
    }
  },
  getters: {
    shopCartItemNum (state) {
      // console.log('当前数量：', state.num)
      return state.num
    }
  }
}
